package com._520it.crm.web.controller;

import com._520it.crm.domain.Department;
import com._520it.crm.service.IDepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @描述:
 * @作者:瓜
 * @create 2020/11/6
 */
@Controller
public class DepartmentController {

    @Autowired
    private IDepartmentService departmentService;
    @ResponseBody
    @RequestMapping("/department_queryForEmp")
    public List<Department> queryForEmp(){
        List result=null;
        result = departmentService.queryForEmp();
        return result;
    }
}
